
<template>
  <div class="content">
    <CustomContent :id="id" title="自定义常用配置链接编辑" />
  </div>
</template>

<script setup lang="ts">
import { ref, watch } from 'vue'
import { useRoute } from 'vue-router'
import CustomContent from './CustomContent.vue'

const route = useRoute()
const id = ref()

watch(
  () => route,
  () => {
    if (route.path == '/OA/Office/EditCustom' && route.query?.id) id.value = route.query?.id
  },
  { deep: true, immediate: true }
)
</script>